<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>修改密码</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    :root {
      --primary: #4F46E5;
      --secondary: #6B7280;
      --light: #F9FAFB;
      --dark: #1F2937;
      --white: #FFFFFF;
      --border: #E5E7EB;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
      --success: #10B981;
      --danger: #EF4444;
      --gray: #9CA3AF;
      
      /* 不同风格主题色 */
      --style1: #3B82F6; /* 科技蓝 */
      --style2: #EC4899; /* 活力粉 */
      --style3: #10B981; /* 生态绿 */
      --style4: #F59E0B; /* 温暖橙 */
      --style5: #8B5CF6; /* 梦幻紫 */
      --style6: #111827; /* 商务黑 */
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #f5f5f5;
      color: var(--dark);
      min-height: 100vh;
      padding: 0;
      margin: 0;
      transition: background-color 0.3s ease;
    }
    
    .container {
      max-width: 420px;
      margin: 0 auto;
      background-color: var(--white);
      min-height: 100vh;
      box-shadow: var(--shadow);
      overflow: hidden;
      position: relative;
      transition: background-color 0.3s ease;
    }
    
    /* 主页面容器 */
    .password-page {
      display: none;
      min-height: 100vh;
      flex-direction: column;
    }
    
    .password-page.active {
      display: flex;
      animation: fadeIn 0.3s ease forwards;
    }
    
    /* 顶部导航栏 */
    .page-header {
      padding: 18px 20px;
      position: relative;
      text-align: center;
      border-bottom: 1px solid var(--border);
      background-color: var(--white);
      transition: all 0.3s ease;
      z-index: 10;
    }
    
    .page-title {
      font-size: 18px;
      font-weight: 600;
      margin: 0;
    }
    
    .back-btn {
      position: absolute;
      left: 20px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--dark);
      font-size: 20px;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .back-btn:active {
      transform: translateY(-50%) scale(0.9);
    }
    
    /* 内容区域 */
    .content {
      flex-grow: 1;
      padding: 30px 20px;
      display: flex;
      flex-direction: column;
    }
    
    .page-description {
      color: var(--secondary);
      font-size: 14px;
      margin-bottom: 30px;
      text-align: center;
    }
    
    /* 表单样式 */
    .form-group {
      margin-bottom: 20px;
    }
    
    .form-label {
      display: block;
      margin-bottom: 8px;
      font-size: 14px;
      font-weight: 500;
    }
    
    .form-control {
      width: 100%;
      padding: 12px 15px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background-color: var(--white);
      font-size: 15px;
      transition: all 0.2s ease;
    }
    
    .form-control:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
    }
    
    .password-input-group {
      position: relative;
    }
    
    .toggle-password {
      position: absolute;
      right: 15px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--secondary);
      cursor: pointer;
      font-size: 16px;
    }
    
    .password-strength {
      margin-top: 8px;
      height: 4px;
      background-color: var(--border);
      border-radius: 2px;
      overflow: hidden;
      display: none;
    }
    
    .password-strength.active {
      display: block;
    }
    
    .strength-bar {
      height: 100%;
      width: 0%;
      transition: width 0.3s ease;
    }
    
    .strength-bar.weak {
      width: 33%;
      background-color: var(--danger);
    }
    
    .strength-bar.medium {
      width: 66%;
      background-color: #F59E0B;
    }
    
    .strength-bar.strong {
      width: 100%;
      background-color: var(--success);
    }
    
    .strength-text {
      font-size: 12px;
      margin-top: 6px;
      color: var(--secondary);
      display: none;
    }
    
    .strength-text.active {
      display: block;
    }
    
    .btn-primary {
      width: 100%;
      padding: 13px;
      background-color: var(--primary);
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      margin-top: 10px;
    }
    
    .btn-primary:hover {
      opacity: 0.9;
    }
    
    .btn-primary:active {
      transform: scale(0.98);
    }
    
    .btn-primary:disabled {
      background-color: var(--gray);
      cursor: not-allowed;
      transform: none;
      opacity: 1;
    }
    
    /* 安全提示 */
    .security-tips {
      margin-top: 30px;
      background-color: var(--light);
      padding: 15px;
      border-radius: 8px;
    }
    
    .tips-title {
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .tips-list {
      padding-left: 24px;
      margin: 0;
    }
    
    .tips-list li {
      font-size: 13px;
      color: var(--secondary);
      margin-bottom: 6px;
    }
    
    .tips-list li:last-child {
      margin-bottom: 0;
    }
    
    /* 样式切换器 */
    .style-switcher {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1010;
      background-color: white;
      border-radius: 8px;
      box-shadow: var(--shadow);
      overflow: hidden;
      width: 180px;
      transition: all 0.3s ease;
      transform: translateX(0);
      opacity: 1;
    }
    
    .style-switcher.hidden {
      transform: translateX(200px);
      opacity: 0;
      pointer-events: none;
    }
    
    .switcher-toggle {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1020;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: var(--primary);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow);
      border: none;
      font-size: 18px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .switcher-header {
      padding: 10px 16px;
      font-size: 14px;
      font-weight: 600;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .switcher-close {
      background: none;
      border: none;
      color: var(--secondary);
      font-size: 16px;
      cursor: pointer;
    }
    
    .switcher-option {
      padding: 12px 16px;
      font-size: 14px;
      cursor: pointer;
      transition: background-color 0.2s;
      display: flex;
      align-items: center;
    }
    
    .switcher-color {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      margin-right: 10px;
    }
    
    .switcher-option:hover {
      background-color: #f9f9f9;
    }
    
    .switcher-option.active {
      background-color: var(--primary);
      color: white;
    }
    
    /* 风格1：科技蓝 */
    .style-1 {
      --primary: var(--style1);
    }
    
    .style-1 .security-tips {
      border-left: 3px solid var(--primary);
    }
    
    /* 风格2：活力粉 */
    .style-2 {
      --primary: var(--style2);
    }
    
    .style-2 .page-header {
      background-color: var(--primary);
      color: white;
      border-bottom: none;
    }
    
    .style-2 .back-btn {
      color: white;
    }
    
    .style-2 .form-control {
      border-radius: 20px;
    }
    
    .style-2 .btn-primary {
      border-radius: 20px;
      box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
    }
    
    /* 风格3：生态绿 */
    .style-3 {
      --primary: var(--style3);
    }
    
    .style-3 .container {
      background-color: #F8FAFC;
    }
    
    .style-3 .form-control {
      background-color: white;
      border-color: rgba(16, 185, 129, 0.2);
    }
    
    .style-3 .security-tips {
      background-color: rgba(16, 185, 129, 0.05);
    }
    
    /* 风格4：温暖橙 */
    .style-4 {
      --primary: var(--style4);
    }
    
    .style-4 .page-title {
      color: var(--primary);
      font-weight: 700;
    }
    
    .style-4 .form-label {
      color: var(--primary);
    }
    
    .style-4 .btn-primary {
      background: linear-gradient(45deg, var(--primary), #FBBF24);
    }
    
    /* 风格5：梦幻紫 */
    .style-5 {
      --primary: var(--style5);
    }
    
    .style-5 .container {
      background-color: #FCFAFF;
    }
    
    .style-5 .form-control:focus {
      box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
    }
    
    .style-5 .password-strength {
      border-radius: 4px;
    }
    
    .style-5 .security-tips {
      border-radius: 12px;
    }
    
    /* 风格6：商务黑 */
    .style-6 {
      --primary: #60A5FA;
      --secondary: #9CA3AF;
      --light: #1F2937;
      --dark: #F9FAFB;
      --white: #111827;
      --border: #374151;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    
    .style-6 body {
      background-color: #030712;
    }
    
    .style-6 .container {
      background-color: var(--white);
    }
    
    .style-6 .page-header {
      background-color: var(--light);
      border-bottom-color: var(--border);
    }
    
    .style-6 .back-btn,
    .style-6 .page-title {
      color: var(--dark);
    }
    
    .style-6 .form-control {
      background-color: var(--light);
      border-color: var(--border);
      color: var(--dark);
    }
    
    .style-6 .security-tips {
      background-color: var(--light);
    }
    
    .style-6 .tips-list li {
      color: var(--secondary);
    }
    
    .style-6 .style-switcher {
      background-color: var(--light);
    }
    
    .style-6 .switcher-header {
      border-bottom-color: var(--border);
      color: var(--dark);
    }
    
    .style-6 .switcher-option {
      color: var(--dark);
    }
    
    .style-6 .switcher-option:hover {
      background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* 动画效果 */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    /* 响应式调整 */
    @media (max-width: 360px) {
      .content {
        padding: 20px 15px;
      }
    }
  </style>
</head>
<body class="style-1">
  <!-- 样式切换器 -->
  <button class="switcher-toggle">
    <i class="fa fa-paint-brush"></i>
  </button>
  
  <div class="style-switcher hidden">
    <div class="switcher-header">
      选择页面样式
      <button class="switcher-close"><i class="fa fa-times"></i></button>
    </div>
    <div class="switcher-option active" data-style="1">
      <span class="switcher-color" style="background-color: var(--style1);"></span>
      科技蓝
    </div>
    <div class="switcher-option" data-style="2">
      <span class="switcher-color" style="background-color: var(--style2);"></span>
      活力粉
    </div>
    <div class="switcher-option" data-style="3">
      <span class="switcher-color" style="background-color: var(--style3);"></span>
      生态绿
    </div>
    <div class="switcher-option" data-style="4">
      <span class="switcher-color" style="background-color: var(--style4);"></span>
      温暖橙
    </div>
    <div class="switcher-option" data-style="5">
      <span class="switcher-color" style="background-color: var(--style5);"></span>
      梦幻紫
    </div>
    <div class="switcher-option" data-style="6">
      <span class="switcher-color" style="background-color: var(--style6);"></span>
      商务黑
    </div>
  </div>
  
  <div class="container">
    <!-- 风格1：科技蓝 -->
    <div class="password-page active" id="page1">
      <div class="page-header">
        <button class="back-btn" id="back1"><i class="fa fa-chevron-left"></i></button>
        <h1 class="page-title">修改密码</h1>
      </div>
      
      <div class="content">
        <p class="page-description">请设置新密码，确保与原密码不同</p>
        
        <form id="passwordForm1">
          <div class="form-group">
            <label class="form-label" for="oldPassword1">原密码</label>
            <div class="password-input-group">
              <input type="password" class="form-control" id="oldPassword1" placeholder="请输入原密码" required>
              <button type="button" class="toggle-password toggle-old1"><i class="fa fa-eye-slash"></i></button>
            </div>
          </div>
          
          <div class="form-group">
            <label class="form-label" for="newPassword1">新密码</label>
            <div class="password-input-group">
              <input type="password" class="form-control" id="newPassword1" placeholder="请输入新密码" required>
              <button type="button" class="toggle-password toggle-new1"><i class="fa fa-eye-slash"></i></button>
            </div>
            <div class="password-strength" id="strength1">
              <div class="strength-bar" id="strengthBar1"></div>
            </div>
            <div class="strength-text" id="strengthText1">密码强度：弱</div>
          </div>
          
          <div class="form-group">
            <label class="form-label" for="confirmPassword1">确认新密码</label>
            <div class="password-input-group">
              <input type="password" class="form-control" id="confirmPassword1" placeholder="请再次输入新密码" required>
              <button type="button" class="toggle-password toggle-confirm1"><i class="fa fa-eye-slash"></i></button>
            </div>
            <div class="strength-text" id="matchText1" style="display: none; color: var(--danger);">两次输入的密码不一致</div>
          </div>
          
          <button type="submit" class="btn-primary" id="submit1" disabled>确认修改</button>
        </form>
        
        <div class="security-tips">
          <div class="tips-title">
            <i class="fa fa-shield"></i> 安全提示
          </div>
          <ul class="tips-list">
            <li>密码长度至少8位</li>
            <li>包含字母和数字</li>
            <li>避免使用常见密码</li>
            <li>不要与其他账号密码相同</li>
          </ul>
        </div>
      </div>
    </div>
    
    <!-- 风格2：活力粉 -->
    <div class="password-page" id="page2">
      <div class="page-header">
        <button class="back-btn" id="back2"><i class="fa fa-chevron-left"></i></button>
        <h1 class="page-title">修改密码</h1>
      </div>
      
      <div class="content">
        <p class="page-description">请设置新密码，确保与原密码不同</p>
        
        <form id="passwordForm2">
          <div class="form-group">
            <label class="form-label" for="oldPassword2">原密码</label>
            <div class="password-input-group">
              <input type="password" class="form-control" id="oldPassword2" placeholder="请输入原密码" required>
              <button type="button" class="toggle-password toggle-old2"><i class="fa fa-eye-slash"></i></button>
            </div>
          </div>
          
          <div class="form-group">
            <label class="form-label" for="newPassword2">新密码</label>
            <div class="password-input-group">
              <input type="password" class="form-control" id="newPassword2" placeholder="请输入新密码" required>
              <button type="button" class="toggle-password toggle-new2"><i class="fa fa-eye-slash"></i></button>
            </div>
            <div class="password-strength" id="strength2">
              <div class="strength-bar" id="strengthBar2"></div>
            </div>
            <div class="strength-text" id="strengthText2">密码强度：弱</div>
          </div>
          
          <div class="form-group">
            <label class="form-label" for="confirmPassword2">确认新密码</label>
            <div class="password-input-group">
              <input type="password" class="form-control" id="confirmPassword2" placeholder="请再次输入新密码" required>
              <button type="button" class="toggle-password toggle-confirm2"><i class="fa fa-eye-slash"></i></button>
            </div>
            <div class="strength-text" id="matchText2" style="display: none; color: var(--danger);">两次输入的密码不一致</div>
          </div>
          
          <button type="submit" class="btn-primary" id="submit2" disabled>确认修改</button>
        </form>
        
        <div class="security-tips">
          <div class="tips-title">
            <i class="fa fa-shield"></i> 安全提示
          </div>
          <ul class="tips-list">
            <li>密码长度至少8位</li>
            <li>包含字母和数字</li>
            <li>避免使用常见密码</li>
            <li>不要与其他账号密码相同</li>
          </ul>
        </div>
      </div>
    </div>
    
    <!-- 风格3：生态绿 -->
    <div class="password-page" id="page3">
      <div class="page-header">
        <button class="back-btn" id="back3"><i class="fa fa-chevron-left"></i></button>
        <h1 class="page-title">修改密码</h1>
      </div>
      
      <div class="content">
        <p class="page-description">请设置新密码，确保与原密码不同</p>
        
        <form id="passwordForm3">
          <div class="form-group">
            <label class="form-label" for="oldPassword3">原密码</label>
            <div class="password-input-group">
              <input type="password" class="form-control" id="oldPassword3" placeholder="请输入原密码" required>
              <button type="button" class="toggle-password toggle-old3"><i class="fa fa-eye-slash"></i></button>
            </div>
          </div>
          
          <div class="form-group">
            <label class="form-label" for="newPassword3">新密码</label>
            <div class="password-input-group">
              <input type="password" class="form-control" id="newPassword3" placeholder="请输入新密码" required>
              <button type="button" class="toggle-password toggle-new3"><i class="fa fa-eye-slash"></i></button>
            </div>
            <div class="password-strength" id="strength3">
              <div class="strength-bar" id="strengthBar3"></div>
            </div>
            <div class="strength-text" id="strengthText3">密码强度：弱</div>
          </div>
          
          <div class="form-group">
            <label class="form-label" for="confirmPassword3">确认新密码</label>
            <div class="password-input-group">
              <input type="password" class="form-control" id="confirmPassword3" placeholder="请再次输入新密码" required>
              <button type="button" class="toggle-password toggle-confirm3"><i class="fa fa-eye-slash"></i></button>
            </div>
            <div class="strength-text" id="matchText3" style="display: none; color: var(--danger);">两次输入的密码不一致</div>
          </div>
          
          <button type="submit" class="btn-primary" id="submit3" disabled>确认修改</button>
        </form>
        
        <div class="security-tips">
          <div class="tips-title">
            <i class="fa fa-shield"></i> 安全提示
          </div>
          <ul class="tips-list">
            <li>密码长度至少8位</li>
            <li>包含字母和数字</li>
            <li>避免使用常见密码</li>
            <li>不要与其他账号密码相同</li>
          </ul>
        </div>
      </div>
    </div>
    
    <!-- 风格4：温暖橙 -->
    <div class="password-page" id="page4">
      <div class="page-header">
        <button class="back-btn" id="back4"><i class="fa fa-chevron-left"></i></button>
        <h1 class="page-title">修改密码</h1>
      </div>
      
      <div class="content">
        <p class="page-description">请设置新密码，确保与原密码不同</p>
        
        <form id="passwordForm4">
          <div class="form-group">
            <label class="form-label" for="oldPassword4">原密码</label>
            <div class="password-input-group">
              <input type="password" class="form-control" id="oldPassword4" placeholder="请输入原密码" required>
              <button type="button" class="toggle-password toggle-old4"><i class="fa fa-eye-slash"></i></button>
            </div>
          </div>
          
          <div class="form-group">
            <label class="form-label" for="newPassword4">新密码</label>
            <div class="password-input-group">
              <input type="password" class="form-control" id="newPassword4" placeholder="请输入新密码" required>
              <button type="button" class="toggle-password toggle-new4"><i class="fa fa-eye-slash"></i></button>
            </div>
            <div class="password-strength" id="strength4">
              <div class="strength-bar" id="strengthBar4"></div>
            </div>
            <div class="strength-text" id="strengthText4">密码强度：弱</div>
          </div>
          
          <div class="form-group">
            <label class="form-label" for="confirmPassword4">确认新密码</label>
            <div class="password-input-group">
              <input type="password" class="form-control" id="confirmPassword4" placeholder="请再次输入新密码" required>
              <button type="button" class="toggle-password toggle-confirm4"><i class="fa fa-eye-slash"></i></button>
            </div>
            <div class="strength-text" id="matchText4" style="display: none; color: var(--danger);">两次输入的密码不一致</div>
          </div>
          
          <button type="submit" class="btn-primary" id="submit4" disabled>确认修改</button>
        </form>
        
        <div class="security-tips">
          <div class="tips-title">
            <i class="fa fa-shield"></i> 安全提示
          </div>
          <ul class="tips-list">
            <li>密码长度至少8位</li>
            <li>包含字母和数字</li>
            <li>避免使用常见密码</li>
            <li>不要与其他账号密码相同</li>
          </ul>
        </div>
      </div>
    </div>
    
    <!-- 风格5：梦幻紫 -->
    <div class="password-page" id="page5">
      <div class="page-header">
        <button class="back-btn" id="back5"><i class="fa fa-chevron-left"></i></button>
        <h1 class="page-title">修改密码</h1>
      </div>
      
      <div class="content">
        <p class="page-description">请设置新密码，确保与原密码不同</p>
        
        <form id="passwordForm5">
          <div class="form-group">
            <label class="form-label" for="oldPassword5">原密码</label>
            <div class="password-input-group">
              <input type="password" class="form-control" id="oldPassword5" placeholder="请输入原密码" required>
              <button type="button" class="toggle-password toggle-old5"><i class="fa fa-eye-slash"></i></button>
            </div>
          </div>
          
          <div class="form-group">
            <label class="form-label" for="newPassword5">新密码</label>
            <div class="password-input-group">
              <input type="password" class="form-control" id="newPassword5" placeholder="请输入新密码" required>
              <button type="button" class="toggle-password toggle-new5"><i class="fa fa-eye-slash"></i></button>
            </div>
            <div class="password-strength" id="strength5">
              <div class="strength-bar" id="strengthBar5"></div>
            </div>
            <div class="strength-text" id="strengthText5">密码强度：弱</div>
          </div>
          
          <div class="form-group">
            <label class="form-label" for="confirmPassword5">确认新密码</label>
            <div class="password-input-group">
              <input type="password" class="form-control" id="confirmPassword5" placeholder="请再次输入新密码" required>
              <button type="button" class="toggle-password toggle-confirm5"><i class="fa fa-eye-slash"></i></button>
            </div>
            <div class="strength-text" id="matchText5" style="display: none; color: var(--danger);">两次输入的密码不一致</div>
          </div>
          
          <button type="submit" class="btn-primary" id="submit5" disabled>确认修改</button>
        </form>
        
        <div class="security-tips">
          <div class="tips-title">
            <i class="fa fa-shield"></i> 安全提示
          </div>
          <ul class="tips-list">
            <li>密码长度至少8位</li>
            <li>包含字母和数字</li>
            <li>避免使用常见密码</li>
            <li>不要与其他账号密码相同</li>
          </ul>
        </div>
      </div>
    </div>
    
    <!-- 风格6：商务黑 -->
    <div class="password-page" id="page6">
      <div class="page-header">
        <button class="back-btn" id="back6"><i class="fa fa-chevron-left"></i></button>
        <h1 class="page-title">修改密码</h1>
      </div>
      
      <div class="content">
        <p class="page-description">请设置新密码，确保与原密码不同</p>
        
        <form id="passwordForm6">
          <div class="form-group">
            <label class="form-label" for="oldPassword6">原密码</label>
            <div class="password-input-group">
              <input type="password" class="form-control" id="oldPassword6" placeholder="请输入原密码" required>
              <button type="button" class="toggle-password toggle-old6"><i class="fa fa-eye-slash"></i></button>
            </div>
          </div>
          
          <div class="form-group">
            <label class="form-label" for="newPassword6">新密码</label>
            <div class="password-input-group">
              <input type="password" class="form-control" id="newPassword6" placeholder="请输入新密码" required>
              <button type="button" class="toggle-password toggle-new6"><i class="fa fa-eye-slash"></i></button>
            </div>
            <div class="password-strength" id="strength6">
              <div class="strength-bar" id="strengthBar6"></div>
            </div>
            <div class="strength-text" id="strengthText6">密码强度：弱</div>
          </div>
          
          <div class="form-group">
            <label class="form-label" for="confirmPassword6">确认新密码</label>
            <div class="password-input-group">
              <input type="password" class="form-control" id="confirmPassword6" placeholder="请再次输入新密码" required>
              <button type="button" class="toggle-password toggle-confirm6"><i class="fa fa-eye-slash"></i></button>
            </div>
            <div class="strength-text" id="matchText6" style="display: none; color: var(--danger);">两次输入的密码不一致</div>
          </div>
          
          <button type="submit" class="btn-primary" id="submit6" disabled>确认修改</button>
        </form>
        
        <div class="security-tips">
          <div class="tips-title">
            <i class="fa fa-shield"></i> 安全提示
          </div>
          <ul class="tips-list">
            <li>密码长度至少8位</li>
            <li>包含字母和数字</li>
            <li>避免使用常见密码</li>
            <li>不要与其他账号密码相同</li>
          </ul>
        </div>
      </div>
    </div>
  </div>
  
  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 当前状态
    let currentStyle = 1;
    
    // DOM元素
    const switcherToggle = document.querySelector('.switcher-toggle');
    const switcher = document.querySelector('.style-switcher');
    const switcherClose = document.querySelector('.switcher-close');
    const switcherOptions = document.querySelectorAll('.switcher-option');
    const passwordPages = {
      1: document.getElementById('page1'),
      2: document.getElementById('page2'),
      3: document.getElementById('page3'),
      4: document.getElementById('page4'),
      5: document.getElementById('page5'),
      6: document.getElementById('page6')
    };
    const bodyElement = document.body;
    
    // 初始化
    function init() {
      // 切换器控制
      switcherToggle.addEventListener('click', toggleSwitcher);
      switcherClose.addEventListener('click', toggleSwitcher);
      
      // 切换样式
      switcherOptions.forEach(option => {
        option.addEventListener('click', function() {
          const style = parseInt(this.getAttribute('data-style'));
          switchStyle(style);
          toggleSwitcher();
        });
      });
      
      // 初始化所有页面的交互
      initPageInteractions();
    }
    
    // 初始化页面交互
    function initPageInteractions() {
      // 为每个页面初始化交互
      for (let i = 1; i <= 6; i++) {
        // 返回按钮
        const backBtn = document.getElementById(`back${i}`);
        backBtn.addEventListener('click', function() {
          alert('返回上一页');
        });
        
        // 密码显示/隐藏切换
        const toggleOld = document.querySelector(`.toggle-old${i}`);
        const toggleNew = document.querySelector(`.toggle-new${i}`);
        const toggleConfirm = document.querySelector(`.toggle-confirm${i}`);
        
        const oldPassword = document.getElementById(`oldPassword${i}`);
        const newPassword = document.getElementById(`newPassword${i}`);
        const confirmPassword = document.getElementById(`confirmPassword${i}`);
        
        toggleOld.addEventListener('click', function() {
          togglePasswordVisibility(oldPassword, this);
        });
        
        toggleNew.addEventListener('click', function() {
          togglePasswordVisibility(newPassword, this);
        });
        
        toggleConfirm.addEventListener('click', function() {
          togglePasswordVisibility(confirmPassword, this);
        });
        
        // 密码强度检测
        const strengthBar = document.getElementById(`strengthBar${i}`);
        const strengthText = document.getElementById(`strengthText${i}`);
        const strengthContainer = document.getElementById(`strength${i}`);
        
        newPassword.addEventListener('input', function() {
          const password = this.value;
          if (password.length > 0) {
            strengthContainer.classList.add('active');
            strengthText.classList.add('active');
            
            const strength = checkPasswordStrength(password);
            updateStrengthIndicator(strengthBar, strengthText, strength);
          } else {
            strengthContainer.classList.remove('active');
            strengthText.classList.remove('active');
            strengthBar.className = 'strength-bar';
            strengthText.textContent = '密码强度：弱';
          }
          checkFormValidity(i);
        });
        
        // 密码匹配检测
        const matchText = document.getElementById(`matchText${i}`);
        
        confirmPassword.addEventListener('input', function() {
          if (this.value.length > 0) {
            if (this.value !== newPassword.value) {
              matchText.style.display = 'block';
            } else {
              matchText.style.display = 'none';
            }
          } else {
            matchText.style.display = 'none';
          }
          checkFormValidity(i);
        });
        
        // 原密码输入检测
        oldPassword.addEventListener('input', function() {
          checkFormValidity(i);
        });
        
        // 表单提交
        const form = document.getElementById(`passwordForm${i}`);
        form.addEventListener('submit', function(e) {
          e.preventDefault();
          
          // 检查原密码是否与新密码相同
          if (oldPassword.value === newPassword.value) {
            alert('新密码不能与原密码相同');
            return;
          }
          
          alert('密码修改成功！');
          // 实际应用中这里会有后端交互
        });
      }
    }
    
    // 切换密码可见性
    function togglePasswordVisibility(input, button) {
      const type = input.getAttribute('type') === 'password' ? 'text' : 'password';
      input.setAttribute('type', type);
      
      // 切换图标
      const icon = button.querySelector('i');
      if (type === 'password') {
        icon.classList.remove('fa-eye');
        icon.classList.add('fa-eye-slash');
      } else {
        icon.classList.remove('fa-eye-slash');
        icon.classList.add('fa-eye');
      }
    }
    
    // 检查密码强度
    function checkPasswordStrength(password) {
      let strength = 0;
      
      // 长度检查
      if (password.length >= 8) strength++;
      if (password.length >= 12) strength++;
      
      // 字符类型检查
      if (/[A-Z]/.test(password)) strength++; // 大写字母
      if (/[a-z]/.test(password)) strength++; // 小写字母
      if (/[0-9]/.test(password)) strength++; // 数字
      if (/[^A-Za-z0-9]/.test(password)) strength++; // 特殊字符
      
      return strength;
    }
    
    // 更新强度指示器
    function updateStrengthIndicator(bar, text, strength) {
      bar.className = 'strength-bar';
      
      if (strength < 3) {
        bar.classList.add('weak');
        text.textContent = '密码强度：弱';
        text.style.color = 'var(--danger)';
      } else if (strength < 5) {
        bar.classList.add('medium');
        text.textContent = '密码强度：中';
        text.style.color = '#F59E0B';
      } else {
        bar.classList.add('strong');
        text.textContent = '密码强度：强';
        text.style.color = 'var(--success)';
      }
    }
    
    // 检查表单有效性
    function checkFormValidity(pageNum) {
      const oldPassword = document.getElementById(`oldPassword${pageNum}`);
      const newPassword = document.getElementById(`newPassword${pageNum}`);
      const confirmPassword = document.getElementById(`confirmPassword${pageNum}`);
      const submitBtn = document.getElementById(`submit${pageNum}`);
      const matchText = document.getElementById(`matchText${pageNum}`);
      
      // 检查所有字段是否填写
      const allFilled = oldPassword.value.length > 0 && 
                         newPassword.value.length > 0 && 
                         confirmPassword.value.length > 0;
      
      // 检查密码是否匹配
      const passwordsMatch = newPassword.value === confirmPassword.value;
      
      // 检查新密码强度
      const passwordStrongEnough = checkPasswordStrength(newPassword.value) >= 3;
      
      // 检查新密码是否与旧密码不同
      const newDifferentFromOld = newPassword.value !== oldPassword.value;
      
      // 启用或禁用提交按钮
      if (allFilled && passwordsMatch && passwordStrongEnough && newDifferentFromOld) {
        submitBtn.disabled = false;
      } else {
        submitBtn.disabled = true;
      }
    }
    
    // 切换样式选择器显示/隐藏
    function toggleSwitcher() {
      switcher.classList.toggle('hidden');
    }
    
    // 关闭所有页面
    function closeAllPages() {
      Object.values(passwordPages).forEach(page => {
        page.classList.remove('active');
      });
    }
    
    // 切换样式
    function switchStyle(style) {
      // 移除所有样式类
      bodyElement.classList.remove('style-1', 'style-2', 'style-3', 'style-4', 'style-5', 'style-6');
      
      // 添加当前样式类
      bodyElement.classList.add(`style-${style}`);
      
      // 更新当前样式
      currentStyle = style;
      
      // 更新切换器选中状态
      switcherOptions.forEach(option => {
        option.classList.remove('active');
        if (parseInt(option.getAttribute('data-style')) === style) {
          option.classList.add('active');
        }
      });
      
      // 显示对应页面
      closeAllPages();
      passwordPages[style].classList.add('active');
    }
    
    // 键盘导航
    document.addEventListener('keydown', function(e) {
      if (e.key === 'ArrowLeft') {
        let prev = currentStyle - 1;
        if (prev < 1) prev = 6;
        switchStyle(prev);
      } else if (e.key === 'ArrowRight') {
        let next = currentStyle + 1;
        if (next > 6) next = 1;
        switchStyle(next);
      }
    });
    
    // 启动
    init();
  </script>
</body>
</html>
